package com.homegoods.orderinfodetail.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * @author QiQi
 * @ClassName: GoodsDetailTypeBean
 * @date 2018/9/22
 * @description
 */
public class GoodsDetailTypeBean implements Parcelable {

    public static final Parcelable.Creator<GoodsDetailTypeBean> CREATOR = new Parcelable.Creator<GoodsDetailTypeBean>() {
        @Override
        public GoodsDetailTypeBean createFromParcel(Parcel source) {
            return new GoodsDetailTypeBean(source);
        }

        @Override
        public GoodsDetailTypeBean[] newArray(int size) {
            return new GoodsDetailTypeBean[size];
        }
    };
    private String name;
    private List<SpeclistBean> speclist;

    public GoodsDetailTypeBean() {
    }

    protected GoodsDetailTypeBean(Parcel in) {
        this.name = in.readString();
        this.speclist = new ArrayList<SpeclistBean>();
        in.readList(this.speclist, SpeclistBean.class.getClassLoader());
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<SpeclistBean> getSpeclist() {
        return speclist;
    }

    public void setSpeclist(List<SpeclistBean> speclist) {
        this.speclist = speclist;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeList(this.speclist);
    }
}
